package com.ruoyi.purchase.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.purchase.mapper.SAccountManagementMapper;
import com.ruoyi.purchase.domain.SAccountManagement;
import com.ruoyi.purchase.service.ISAccountManagementService;

/**
 * 结算账号管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-16
 */
@Service
public class SAccountManagementServiceImpl implements ISAccountManagementService 
{
    @Autowired
    private SAccountManagementMapper sAccountManagementMapper;

    /**
     * 查询结算账号管理
     * 
     * @param id 结算账号管理主键
     * @return 结算账号管理
     */
    @Override
    public SAccountManagement selectSAccountManagementById(Long id)
    {
        return sAccountManagementMapper.selectSAccountManagementById(id);
    }

    /**
     * 查询结算账号管理列表
     * 
     * @param sAccountManagement 结算账号管理
     * @return 结算账号管理
     */
    @Override
    public List<SAccountManagement> selectSAccountManagementList(SAccountManagement sAccountManagement)
    {
        return sAccountManagementMapper.selectSAccountManagementList(sAccountManagement);
    }

    /**
     * 新增结算账号管理
     * 
     * @param sAccountManagement 结算账号管理
     * @return 结果
     */
    @Override
    public int insertSAccountManagement(SAccountManagement sAccountManagement)
    {
        return sAccountManagementMapper.insertSAccountManagement(sAccountManagement);
    }

    /**
     * 修改结算账号管理
     * 
     * @param sAccountManagement 结算账号管理
     * @return 结果
     */
    @Override
    public int updateSAccountManagement(SAccountManagement sAccountManagement)
    {
        return sAccountManagementMapper.updateSAccountManagement(sAccountManagement);
    }

    /**
     * 批量删除结算账号管理
     * 
     * @param ids 需要删除的结算账号管理主键
     * @return 结果
     */
    @Override
    public int deleteSAccountManagementByIds(Long[] ids)
    {
        return sAccountManagementMapper.deleteSAccountManagementByIds(ids);
    }

    /**
     * 删除结算账号管理信息
     * 
     * @param id 结算账号管理主键
     * @return 结果
     */
    @Override
    public int deleteSAccountManagementById(Long id)
    {
        return sAccountManagementMapper.deleteSAccountManagementById(id);
    }
}
